#ifndef CLIENTSDIALOG_H
#define CLIENTSDIALOG_H

#include "../../Headers/Classes/client.h"

#include <QDialog>
#include <QModelIndex>
#include <QKeyEvent>

namespace Ui {
    class ClientsDialog;
}

class ClientsDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ClientsDialog(QWidget *parent = 0);
    ~ClientsDialog();
    Client * getCurrentClient();
    void Update();
    bool checkSelected();

private slots:
    void on_createButton_clicked();

    void on_editButton_clicked();

    void on_deleteButton_clicked();

    void on_closeButton_clicked();

    void on_tableView_doubleClicked(const QModelIndex &index);

    void on_tableView_entered(const QModelIndex &index);

    void keyPressEvent(QKeyEvent *event);

private:
    Ui::ClientsDialog *ui;
};

#endif // CLIENTSDIALOG_H
